/**
 * The class used to map the string instead of original string
 * The different is only in that this one is using the interned string
 *
 */
public class ConstString
{
	private int _hashCode;
	private String _str;

	public ConstString(String str)
	{
		_str = str.intern();
		_hashCode = _str.hashCode();
	}

	public int hashCode() {return _hashCode;}
	public String str() {return _str;}

	public boolean equals(Object o) 
	{
		if (o instanceof ConstString) return _str == ((ConstString)o).str();
		return false;
	}	

	public String toString() {return _str;}
}
